package com.cmc.cloud.cmclink.doc.convert;

import java.util.*;

import com.cmc.cloud.cmclink.doc.vo.blnocntrrecordationvo.BlnoCntrRecordationCreateReqVO;
import com.cmc.cloud.cmclink.doc.vo.blnocntrrecordationvo.BlnoCntrRecordationRespVO;
import com.cmc.cloud.cmclink.doc.vo.blnocntrrecordationvo.BlnoCntrRecordationUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.cmc.cloud.cmclink.doc.entity.BlnoCntrRecordationDO;

/**
 * 提单箱况备案 Convert
 *
 * @author 集运管理员
 */
@Mapper
public interface BlnoCntrRecordationConvert {
    /**
     * 获取转换接口的实例
     */
    BlnoCntrRecordationConvert INSTANCE = Mappers.getMapper(BlnoCntrRecordationConvert.class);

    /**
     * 将创建请求VO转换为DO
     *
     * @param bean 创建请求VO
     * @return DO
     */
    BlnoCntrRecordationDO convert(BlnoCntrRecordationCreateReqVO bean);

    /**
     * 将更新请求VO转换为DO
     *
     * @param bean 更新请求VO
     * @return DO
     */
    BlnoCntrRecordationDO convert(BlnoCntrRecordationUpdateReqVO bean);

    /**
     * 将DO转换为查询响应VO
     *
     * @param bean DO
     * @return VO
     */
    BlnoCntrRecordationRespVO convert(BlnoCntrRecordationDO bean);

    /**
     * 将DO列表转换为查询响应VO列表
     *
     * @param list DO列表
     * @return VO List
     */
    List<BlnoCntrRecordationRespVO> convertList(List<BlnoCntrRecordationDO> list);

}
